package com.android.cattlefarm;

import android.app.Application;

import com.android.cattlefarm.util.ExportEntity;
import com.android.cattlefarm.util.ImportEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Huang on 2015/7/4.
 */
public class App extends Application {

    static App instance;

    private List<ImportEntity> importEntityList;
    private List<ExportEntity> exportEntityList;
    private int currentPos;
    private int modifyPos ;
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this ;
        exportEntityList = new ArrayList<>();
    }

    public static App getInstance() {
        return instance;
    }

    public int getCurrentPos() {
        return currentPos;
    }

    public void setCurrentPos(int currentPos) {
        this.currentPos = currentPos;
    }

    public int getModifyPos() {
        return modifyPos;
    }

    public void setModifyPos(int modifyPos) {
        this.modifyPos = modifyPos;
    }

    public List<ImportEntity> getImportEntityList() {
        return importEntityList;
    }

    public void setImportEntityList(List<ImportEntity> importEntityList) {
        this.importEntityList = importEntityList;
    }


    public List<ExportEntity> getExportEntityList() {
        return exportEntityList;
    }

    public void setExportEntityList(List<ExportEntity> exportEntityList) {
        this.exportEntityList = exportEntityList;
    }
}
